import {getMemberlist} from "../../../util/axios"
const state={
     memberlist:[]
}
const getters={
     getMemberlist(state){
         return state.memberlist
     }
}
const mutations={
    REQ_MEMBERLIST(state,payload){
        state.memberlist = payload
    }
   
}
const actions={
    memberlistAction({commit}){
        getMemberlist().then(res=>{
            if(res.code==200){
                // console.log(res);
                commit("REQ_MEMBERLIST",res.list)
            }
        })
    }
   
}


export default{
    state,
    getters,
    mutations,
    actions,
    namespaced:true
}